﻿using FluentNHibernate.Mapping;
using TheBlog.NhibernateModel.Entities;

namespace TheBlog.NhibernateModel.Mappings
{
    public class EntityMap<T> : ClassMap<T> where T : EntityBase
    {
        public EntityMap()
        {
            Id(x => x.Id).Not.Nullable().GeneratedBy.GuidComb();
            LazyLoad();
            
        }
    }
}